<?php
namespace Home\Model;
use Think\Model;

class OrderModel extends Model {

    protected $_validate = array (
		array('firstName','require','FirstName can not be empty', 1),
		array('lastName','require','LastName can not be empty', 1),
		array('money','require','Payment amount can not be empty', 1),
		array('order_no','require','Order number repeat', 1 , unique , Model::MODEL_INSERT),
    );	

    protected $_auto = array (
		array('createTime','time',Model::MODEL_INSERT,'function'),		
		array('updateTime','time',Model::MODEL_BOTH,'function'),
	);
}
?>